<?
session_start();
ob_start();

include("conf/config.php"); 
include("conf/database.php");
include("conf/tools.php");
include("session.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>
			Brahma Kumaris&reg; | IT & Communications : <?=$page_title?>
		</title>
		<link href="includes/style.css" rel="stylesheet" type="text/css" />
		<script src="tools.js"  type="text/javascript" ></script>

	</head>
	<body class="bodybg">
		<table width="980" cellpadding="0" align="center" cellspacing="0" border="0">
			<tr>
				<td valign="top" colspan="2" width="100%" >
					<div class="cleardiv"></div>
					<? if($header!=-1) { ?><div  class="headerbg">
						
					</div><? } ?>
					<div class="cleardiv"></div>
					
					<? if($header!=-1) {?>
					<div style="padding-top:5px;height:24px;padding-right:5px;background:#FDFEC2;border:0px solid #666;">
					
						<div class="fleft" style="width:400px" >
							<ul class="topMenu">
								<li><a <?=getMenuClass(1,$mindex)?> href="index.php">Home</a></li>
								
								
								<?if(!isLoggedIn()==1){?>
								<li><a <?=getMenuClass(3,$mindex)?> href="register.php">Membership Registration</a></li>
								<? } ?>
								<?if(isLoggedIn()==1){?>
								<li><a <?=getMenuClass(4,$mindex)?> href="sevaregister.php">My Profile, Seva Requests, Invites</a></li>
								<? } ?>
								<li><a <?=getMenuClass(2,$mindex)?> href="news.php">News  </a></li>

								<?if(isLoggedIn()==1){?>
								<li><a <?=getMenuClass(4,$mindex)?> href="#prg_event_list.php">Events Registrations </a></li>
								<? } ?>

								<li><a <?=getMenuClass(5,$mindex)?> href="retreat_apply.php">BKITC Retreat 2012 - 13	</a></li>
								
							</ul>
						</div>
						<div class="fnone">
							<div class="fright" style="margin-top:3px;border:0px solid;">
							<span class="profile" >

							<?if(isLoggedIn()==1){?>
								<span><b>Welcome <?=$_SESSION["member_name"]?></b>!</span>
								<a  href="profile.php">My Account</a> | 
								<a  href="logout.php">Log Out</a> 
								<?}else{ ?>
								<span><b> Welcome Dear Member </b>!</span>
								<a  href="login.php">Profile</a> | 
								<a  href="login.php">Log in</a> 
								<? } ?>
							</span>
							</div>
						</div>
						
						
					</div>
					<? } ?>
					<div class="cleardiv"></div>
					<div style="min-height:550px;background:#fff;padding:10px 10px 10px 10px;border:1px solid #ccc;border-top:0px;">
					
						<table width="100%" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<td valign="top" width="<? if($header!=-1) { echo "180";} ?>" style="border-right:1px solid #E5E5E5;height:550px;">
								<? if($header!=-1) {?><?include("includes/leftside.php");?><? } ?>
							</td>
							<td valign="top"  style="padding-left:15px;">
							<div style="margin-left:5px;margin-top:15px;margin-right:5px;">
								<div class="page_title"><?=$page_title?></div>
								